<template>
  <view class="flex_row_center_center content">
    <view class="center">
      <image :src="imgUrl + 'xiangzhu_2.png'" />
      <view @click="jumpTo">
        首页
      </view>
    </view>
  </view>
</template>

<script>
// #ifdef H5
import weixinShare from '@/mixins/weixin-h5-share.js'
// #endif
export default {
  name: 'IndexMain',
  // #ifdef H5
  mixins: [weixinShare],
  // #endif
  data() {
    return {
      imgUrl: getApp().globalData.imgUrl,
    }
  },
  onLoad() {
    
   
  },
  created() {
    uni.$on('onLogin', (data) => {
      console.log(data, '----index-onLogin')
    })
    
    // const params = {
    //   url: this.$apiUrl.cateList,
    // }
    // this.$request(params).then(() => {
    // })
  },
  mounted() {
    
  },
  methods: {
    jumpTo() {
      this.$jumpToLogin()
    },
  },
}
</script>

<style lang="scss" scoped>
.content{
  width: 100%;
  .center{
    text-align: center;
    image{
      width: 300rpx;
      height: 300rpx;
    }
  }
}
</style>
